package com.yidu.domain;

import java.text.SimpleDateFormat;
import java.util.Date;

/**
 * 类注释:角色类
 * @author wpy
 * 2018年11月27日上午10:43:11
 */
public class ListenRole {
	/**
	 * 角色ID(主键)
	 */
    private String roleId;

    /**
     * 角色名称
     */
    private String roleName;

    /**
     * 角色编码
     */
    private String roleEncoded;

    /**
     * 角色描述
     */
    private String roleDescribe;

    /**
     * 是否有效
     */
    private Integer isva;

    /**
     * 操作时间
     */
    private Date openTime;

    /**
     * 操作人
     */
    private String oper;

    /**
     * 排序
     */
    private String sort;
    
    /**
     * 操作时间类型转换
     */
    private String openDate;
    

    public String getOpenDate() {
		return openDate;
	}

	public void setOpenDate(String openDate) {
		this.openDate = openDate;
	}

	public String getRoleId() {
        return roleId;
    }

    public void setRoleId(String roleId) {
        this.roleId = roleId == null ? null : roleId.trim();
    }

    public String getRoleName() {
        return roleName;
    }

    public void setRoleName(String roleName) {
        this.roleName = roleName == null ? null : roleName.trim();
    }

    public String getRoleEncoded() {
        return roleEncoded;
    }

    public void setRoleEncoded(String roleEncoded) {
        this.roleEncoded = roleEncoded == null ? null : roleEncoded.trim();
    }

    public String getRoleDescribe() {
        return roleDescribe;
    }

    public void setRoleDescribe(String roleDescribe) {
        this.roleDescribe = roleDescribe == null ? null : roleDescribe.trim();
    }

    public Integer getIsva() {
        return isva;
    }

    public void setIsva(Integer isva) {
        this.isva = isva;
    }

    public Date getOpenTime() {
        return openTime;
    }

    public void setOpenTime(Date openTime) {
    	SimpleDateFormat sdf=new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
    	openDate = sdf.format(openTime);
        this.openTime = openTime;
    }

    public String getOper() {
        return oper;
    }

    public void setOper(String oper) {
        this.oper = oper == null ? null : oper.trim();
    }

    public String getSort() {
        return sort;
    }

    public void setSort(String sort) {
        this.sort = sort == null ? null : sort.trim();
    }
}